﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="PSE.Deployment.SetupBase.UI.CustomComponents.GroupsTreeView">
    <UserControl.Resources>
        <ResourceDictionary>
            <HierarchicalDataTemplate x:Key="CheckBoxItemTemplate" ItemsSource="{Binding Children, Mode=OneTime}">
                <StackPanel Orientation="Horizontal">
                    <CheckBox x:Name="chkGroup" Focusable="False" IsChecked="{Binding IsChecked}" IsEnabled="{Binding IsEnabled}" VerticalAlignment="Center" Style="{DynamicResource CheckBoxSetup}" Template="{DynamicResource CheckBoxControlTemplateSetup}" />
                    <TextBlock Text="{Binding Name, Mode=OneTime}" Margin="2,4,2,2"/>
                </StackPanel>
            </HierarchicalDataTemplate>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <TreeView x:Name="treeView" ItemContainerStyle="{DynamicResource TreeViewItemSetup}" ItemTemplate="{DynamicResource CheckBoxItemTemplate}" Width="Auto" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
    </Grid>
</UserControl>